import request from '@/utils/request'

// 实时获取组织架构全部数据
export function getSyNcOrganizational (data) {
    return request({
      url: '/api/dingtalk/getLocalOrganizational',
      method: 'get',
      params: data
    })
}

// 主动同步全部组织架构成员信息
export function getDepartmentAll (data) {
  return request({
    url: '/api/dingtalk/department/all',
    method: 'get',
    params: data
  })
}

// 主动同步组织架构内部门列表
export function getDepartmentList (data) {
  return request({
    url: '/api/dingtalk/department/list',
    method: 'get',
    params: data
  })
}
